package Server.network.server;

import Server.Opcodes;
import Server.world.object;

public class EffectLoc extends BasePacket{
	
	public EffectLoc(object cha, int id){
		writeC(Opcodes.S_OPCODE_EFFECTLOC);
		writeH(cha.get_x());
		writeH(cha.get_y());
		writeH(id);
		writeC(0x06);
	}

	public EffectLoc(int x, int y, int id){
		writeC(Opcodes.S_OPCODE_EFFECTLOC);
		writeH(x);
		writeH(y);
		writeH(id);
		writeC(0x06);
	}

	public byte[] send(){
		
		return getBytes();
	}

}
